<script>
function test() {
    var xhr = new XMLHttpRequest;
    xhr.open("GET", "detached-frame.html");
    xhr.send();
    xhr.onreadystatechange = function() {
        if (xhr.readyState == xhr.DONE) {
            var parentWindow = window.parent;
            parentWindow.document.body.innerHTML += "";
                parentWindow.testRunner.notifyDone();
        }
    }
}
</script>
<body onload="test()">